<h1>Listing panels</h1>

<table>
  <tr>
    <th>User</th>
    <th>Panelname</th>
    <th>Width</th>
    <th>Height</th>
  </tr>

<% for panel in @panels %>
  <tr>
    <td><%=h panel.user_id %></td>
    <td><%=h panel.panelName %></td>
    <td><%=h panel.width %></td>
    <td><%=h panel.height %></td>
    <td><%= link_to 'Show', panel %></td>
    <td><%= link_to 'Edit', edit_panel_path(panel) %></td>
    <td><%= link_to 'Destroy', panel, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New panel', new_panel_path %>
